import request from '@/utils/request'

// 导入
export function downloadFile() {
  return request({
    url: '/papertopic/papertopic/downloadExcel',
    method: 'get',
    responseType:'blob'
  })
}

// 查询抽奖 题列表
export function listLotterytopic(query) {
  return request({
    url: '/lotterytopic/lotterytopic/list',
    method: 'get',
    params: query
  })
}

// 查询抽奖 题详细
export function getLotterytopic(id) {
  return request({
    url: '/lotterytopic/lotterytopic/' + id,
    method: 'get'
  })
}

// 新增抽奖 题
export function addLotterytopic(data) {
  return request({
    url: '/lotterytopic/lotterytopic',
    method: 'post',
    data: data
  })
}

// 修改抽奖 题
export function updateLotterytopic(data) {
  return request({
    url: '/lotterytopic/lotterytopic',
    method: 'put',
    data: data
  })
}

// 删除抽奖 题
export function delLotterytopic(id) {
  return request({
    url: '/lotterytopic/lotterytopic/' + id,
    method: 'delete'
  })
}

// 导出抽奖 题
export function exportLotterytopic(query) {
  return request({
    url: '/lotterytopic/lotterytopic/export',
    method: 'get',
    params: query
  })
}